﻿
(function(){var Y=YAHOO.lang,YE=YAHOO.util.Event,YD=YAHOO.util.Dom;YAHOO.namespace("TOM.Nav");YAHOO.TOM.Nav=function()
{var navMain=YD.getElementsByClassName("nav_main_inner","div")[0];var navList=navMain.getElementsByTagName("li");YE.on(navList,"mouseover",function(ev)
{var el=YE.getTarget(ev);if(el.nodeName!=="LI")
{el=YD.getAncestorByTagName(el,"li");}
var el_A=YD.getElementsByClassName("nav_item","a",el)[0];if(!YD.hasClass(el_A,"nav_itemSel"))
{YD.addClass(el_A,"nav_itemHover");}
if(YD.hasClass(el_A,"nav_multi"))
{var navMenu=YD.getElementsByClassName("nav_menu","div",el)[0];YD.setStyle(navMenu,"display","block");if(YAHOO.env.ua.ie==6){var hasframe=navMenu.getElementsByTagName("iframe");if(hasframe.length===0){var navMeneIframe=document.createElement("iframe");navMeneIframe.setAttribute("width","110px");var navMeneIframe_height=navMenu.getElementsByTagName("a").length*20;navMeneIframe.setAttribute("height",navMeneIframe_height);navMeneIframe.setAttribute("frameborder","0");navMeneIframe.setAttribute("src","about:blank");navMenu.appendChild(navMeneIframe);}}
var navMenu_A=navMenu.getElementsByTagName("a");YD.addClass(navMenu_A[navMenu_A.length-1],"nav_menu_last");if(YD.hasClass(el_A,"nav_itemSel"))
{YD.setStyle(navMenu,"left","0px");}}});YE.on(navList,"mouseout",function(ev)
{var el=YE.getTarget(ev);if(el.nodeName!=="LI")
{el=YD.getAncestorByTagName(el,"li");}
var el_A=YD.getElementsByClassName("nav_item","a",el)[0];YD.removeClass(el_A,"nav_itemHover");if(YD.hasClass(el_A,"nav_multi"))
{var navMenu=YD.getElementsByClassName("nav_menu","div",el);YD.setStyle(navMenu,"display","none");}});}
if(YD&&YD.getElementsByClassName("nav_main","div")[0])
{new YAHOO.TOM.Nav();}})();